#!/usr/bin/env python

# to-jpg-converter by krute 2006

import Image
import os
import sys

if __name__ == "__main__":
	if len(sys.argv) < 2:
		print "No arguments"
	else:
		for filename in sys.argv[1:]:
			image = Image.open(filename)
			f2 = filename[0:-3]
			image.save(f2 + "jpg", quality=100)